from fastapi import APIRouter

app3 = APIRouter()




@app3.get('/me')
async def getUserByNameA():
    print('A方法运行了')
    return {'name':'李欣桐'}


@app3.get('/name/{name}')
async def getUserByNameB(name:str):
    print('B方法运行了')
    return {'name':name}

@app3.get('/id/{id}')
async def getUser(id:int):
    print(id,type(id))
    return {'userId':id}






